package com.es.hr.rtmArea;

import javax.servlet.http.HttpServletRequest;

import com.es.business.area.AreaBiz;
import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class RetrieveAreaListAction extends ActionSupport
implements ServletRequestAware{
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	HttpServletRequest request;

	public void setServletRequest(HttpServletRequest paramHttpServletRequest) {
		// TODO Auto-generated method stub
		this.request = paramHttpServletRequest;
	}
	
	public String execute() throws Exception{
		AreaBiz areaBiz = new AreaBiz();		
		request.setAttribute("areaBean", areaBiz.getAreaList());
		return "success";
	}
	 

}